package com.example.easyexcel.service;

import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

public interface EasyExcelService {

    void importExcel(MultipartFile file, Class<?> clazz) throws IOException;

    void exportExcel(HttpServletResponse httpServletResponse, List<?> data, Class<?> clazz, String fileName) throws IOException;

    void exportExcelTemplate(HttpServletResponse httpServletResponse, Class<?> clazz, String fileName) throws IOException;
}
